package com.corpgovernment.common.bo;

import com.corpgovernment.common.enums.RetryInspectEnum;
import lombok.Data;

@Data
public class HttpRetryInspectBo {

    /**
     * 是否需要重试
     */
    private boolean retry;

    /**
     * 需要重试异常
     */
    private RetryInspectEnum retryInspectEnum;


    public static HttpRetryInspectBo success(boolean retry, RetryInspectEnum retryInspectEnum){
        HttpRetryInspectBo httpRetryInspectBo = new HttpRetryInspectBo();
        httpRetryInspectBo.setRetry(retry);
        httpRetryInspectBo.setRetryInspectEnum(retryInspectEnum);
        return httpRetryInspectBo;
    }
}
